spark*/bin/spark-submit --master k8s://https://localhost:6443 \
            --deploy-mode client \
            --name spark-pi \
            --class org.apache.spark.examples.SparkPi \
            --conf spark.kubernetes.namespace=default \
            --conf spark.kubernetes.authenticate.driver.serviceAccountName=spark \
            --conf spark.executor.instances=1 \
            --conf spark.kubernetes.container.image=172.16.2.66:5000/spark:v3.0 \
            --conf spark.driver.host=172.16.2.62 \
            --conf spark.kubernetes.authenticate.caCertFile=/opt/kubernetes/ssl/ca.pem \
            spark-3.1.1*/examples/jars/spark-examples_2.12-3.0.2-SNAPSHOT.jar
 
 
#spark.kubernetes.authenticate.driver.serviceAccountName  指定apiserver的账户
#spark.kubernetes.authenticate.caCertFile                 apiserver的ca证书，这个参数和cluster模式不同，笔者真实把spark on k8s的参数仔细看了一遍才测通的
#spark.driver.host                                        client所在机器的地址           
